package com.test.manager.service;

import com.test.db.api.entity.User;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

@Service
@ConditionalOnProperty(name = "common.db", havingValue = "mysql2")
public class MyServiceImpl2 implements MyService{
    @Override
    public User getInfo() {
        User user = new User();
        user.setName("2222");
        return user;
    }
}
